#ifndef TLV_H
#define TLV_H

#include <QString>

enum TaskType {
    TASK_SIGNUP_SECTION1 = 1,
    TASK_SIGNUP_SECTION1_RESP_OK,
    TASK_SIGNUP_SECTION1_RESP_ERROR,
    TASK_SIGNUP_SECTION2,
    TASK_SIGNUP_SECTION2_RESP_OK,
    TASK_SIGNUP_SECTION2_RESP_ERROR,
    TASK_LOGIN_SECTION1,
    TASK_LOGIN_SECTION1_RESP_OK,
    TASK_LOGIN_SECTION1_RESP_ERROR,
    TASK_LOGIN_SECTION2,
    TASK_LOGIN_SECTION2_RESP_OK,
    TASK_LOGIN_SECTION2_RESP_ERROR,
};

struct TLV {
    int type;
    int length;
    char data;
};

struct Packet {
    int type;
    int length;
    QString msg;
};

#endif // TLV_H
